<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>流程管理</title>
    <#include '../include/common.html'/>
    <script type="text/javascript" src="<@s.url '/resources/process/js/model.js'/>"></script>
</head>
<body>

<div class="layui-btn-group">
    <!--<a class="layui-btn" target="_blank" href="../modeler.do" title="新建模型"><i class="layui-icon">&#xe654;</i>新建模型</a>-->
    <button class="layui-btn" onclick="add()" title="新建模型"><i class="layui-icon">&#xe654;</i>新建模型</button>
    <button class="layui-btn layui-btn-normal" onclick="javascript:location.reload();" title="刷新"><i class="layui-icon">&#x1002;</i>刷新</button>
</div>
<br>
<table class="layui-table">
    <thead>
    <tr>
        <th width="70px">Id</th>
        <th>Key</th>
        <th>Name</th>
        <th>Version</th>
        <th>Category</th>
        <th>CreateTime</th>
        <th>LastUpdateTime</th>
        <th>DeploymentId</th>
        <th>MetaInfo</th>
        <th width="140px">操作</th>
    </tr>
    </thead>
    <tbody>
    <#list models as m>
        <tr>
            <td>${m.id!}</td>
            <td>${m.key!}</td>
            <td>${m.name!}</td>
            <td>${m.version!}</td>
            <td>${m.category!}</td>
            <td>${m.createTime?date!}</td>
            <td>${m.lastUpdateTime?date!}</td>
            <td>${m.deploymentId!}</td>
            <td>${m.metaInfo!}</td>
            <td>
                <div class="layui-btn-group">
                <a class="layui-btn layui-btn-mini layui-btn-warm" target="_blank" href="<@s.url '/modeler/index.do?modelId='/>${m.id!}">编辑</a>
                <button class="layui-btn layui-btn-mini layui-btn-danger" onclick="delModel('${m.id}')">删除</button>
                <button class="layui-btn layui-btn-mini" onclick="deployModel('${m.id}')">发布(部署)</button>
                </div>
            </td>
        </tr>
    </#list>
    </tbody>
</table>
</body>
</html>